package com.asset.model.entity;

import java.util.Date;

/**
 * 折旧明细表
 */

public class DepreciationDetail {
    //主键
    private Integer id;

    //折旧记录id
    private Integer recordId;

    //资产id
    private Integer assetId;

    //原值
    private Double originalValue;

    //折旧前净值
    private Double netValueBefore;

    //折旧后净值
    private Double netValueAfter;

   //本期折旧金额
    private Double currentDepreciation;

    //累计折旧金额
    private Double cumulativeDepreciation;

    //剩余折旧金额
    private Double remainingValue;

    //累计折旧期数
    private Integer monthsCumulative;

    //剩余折旧期数
    private Integer monthsRemaining;

    //资产
    private Asset asset;


    public Asset getAsset() {
        return asset;
    }

    public void setAsset(Asset asset) {
        this.asset = asset;
    }


    @Override
    public String toString() {
        return "DepreciationDetail{" +
                "id=" + id +
                ", recordId=" + recordId +
                ", assetId=" + assetId +
                ", originalValue=" + originalValue +
                ", netValueBefore=" + netValueBefore +
                ", netValueAfter=" + netValueAfter +
                ", currentDepreciation=" + currentDepreciation +
                ", cumulativeDepreciation=" + cumulativeDepreciation +
                ", remainingValue=" + remainingValue +
                ", monthsCumulative=" + monthsCumulative +
                ", monthsRemaining=" + monthsRemaining +
                ", asset=" + asset +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRecordId() {
        return recordId;
    }

    public void setRecordId(Integer recordId) {
        this.recordId = recordId;
    }

    public Integer getAssetId() {
        return assetId;
    }

    public void setAssetId(Integer assetId) {
        this.assetId = assetId;
    }

    public Double getOriginalValue() {
        return originalValue;
    }

    public void setOriginalValue(Double originalValue) {
        this.originalValue = originalValue;
    }

    public Double getNetValueBefore() {
        return netValueBefore;
    }

    public void setNetValueBefore(Double netValueBefore) {
        this.netValueBefore = netValueBefore;
    }

    public Double getNetValueAfter() {
        return netValueAfter;
    }

    public void setNetValueAfter(Double netValueAfter) {
        this.netValueAfter = netValueAfter;
    }

    public Double getCurrentDepreciation() {
        return currentDepreciation;
    }

    public void setCurrentDepreciation(Double currentDepreciation) {
        this.currentDepreciation = currentDepreciation;
    }

    public Double getCumulativeDepreciation() {
        return cumulativeDepreciation;
    }

    public void setCumulativeDepreciation(Double cumulativeDepreciation) {
        this.cumulativeDepreciation = cumulativeDepreciation;
    }

    public Double getRemainingValue() {
        return remainingValue;
    }

    public void setRemainingValue(Double remainingValue) {
        this.remainingValue = remainingValue;
    }

    public Integer getMonthsCumulative() {
        return monthsCumulative;
    }

    public void setMonthsCumulative(Integer monthsCumulative) {
        this.monthsCumulative = monthsCumulative;
    }

    public Integer getMonthsRemaining() {
        return monthsRemaining;
    }

    public void setMonthsRemaining(Integer monthsRemaining) {
        this.monthsRemaining = monthsRemaining;
    }
}
